package com.tjetc.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.tjetc.domian.Admin;


public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    @Select("select * from admin where username=#{username}")
    Admin findByUsername(String username);


    List<Admin> list();

    @Select("select * from admin where username like concat('%',#{username},'%')")
    List<Admin> findByUsernameLike(String username);
}